package com.jokerpan.project.service;

import com.jokerpan.project.commons.ActionResult;
import com.jokerpan.project.entity.Comment;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * @author jokerpan
 */
public interface CommentService {

    Map<String, Object> queryList(Comment comment);

    List<LinkedHashMap<String, Object>> queryByBlogId(Comment comment);

    Boolean add(Comment comment) throws Exception;

    ActionResult update(Comment comment);

    ActionResult like(Comment comment);

    ActionResult dislike(Comment comment);

    ActionResult deleteById(Integer id);
}
